# caddy + mariadb + php-fpm
This is server setup compatible with bitrix and other strange frameworks
requiring long execution time and big request size limits.
It automatically configures ssl certs.
It also features 2 backup mechanisms: one is just regular
tar backups (they go inside `archives` directory), it runs weekly and
only keeps last 5 backup files; other
is using cheap deduplication and runs `casync` tool. Casync
backups are inside `backups` directory. They run daily.

Server can be ran as docker-compose (see `run.sh`) or
you can build vm using `./scripts/build-qemu.sh`,
start it with `./scripts/startqemu.sh`.

Defaults are ok, but if you want, you can change
domains, mysql user and password as well as server timezone
by editing .env file. That data is used by both docker and
generated virtual images.

# requirements
obviously if you need to run docker-compose you need docker-compose
for building vm images you need:
nix package manager for building the vm
openssh (ssh-keygen command) to generate keys
openssh (ssh command) to access vm
rclone to mount vm using sftp.